﻿using Ch9_Portable.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ch9_Portable.Interfaces
{
    public interface IDeviceDataService
    {

        Task<List<Ch9Item>> LoadSavedData();
        // Save the data locally
        Task<bool> SaveLocalSession(Ch9Item item);

        // Load the local data
        Task<List<Ch9Item>> LoadLocalSessions(string fileName);

        // Save and load the viewed posts in this session remotely
        Task<bool> SaveRoamingSession(Ch9Item session);

        bool HasSavedSession(Ch9Item thisSession);

        Task<List<Ch9Item>> LoadRoamingSessions(string filename);

        // can this service save remote data?
        bool IsRemoteEnabled();



    }
}
